<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<script type="text/javascript">
    $(document).ready(function () {
        $("#search").css("display","block");
        loadDiv('contentDiv','${ctx}/operation/operationScheduleAudit/auditList');
        loadDiv('operationRigthCenterDiv','${ctx}/operation/operationScheduleAudit/auditForm');
        <%--$("#contentDiv").load('${ctx}/operation/operationScheduleAudit/auditList');--%>
        <%--$("#operationRigthCenterDiv").load('${ctx}/operation/operationScheduleAudit/auditForm');--%>
    })
        //弹出右
    function modify(id) {
//        hideShowTableTd('contentTable', '3,4,5,6', '2');
//        $("#operationLeftDiv").attr("class", "main-content col-sm-4");
        loadDiv('operationRigthCenterDiv','${ctx}/operation/operationScheduleAudit/auditForm?id='+id);
        <%--$("#operationRigthCenterDiv").load('${ctx}/operation/operationScheduleAudit/auditForm?id='+id);--%>
//        $("#operationRigthCenterDiv").show('normal');
    }
</script>
<div class="app">
    <section class="layout">
        <section class="main-content col-lg-12" id="operationLeftDiv">
            <div class="content-wrap">
                <div class="wrapper" style="bottom: 50px;">
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#">手术安排列表</a>
                        </li>
                    </ul>
                    <section class="panel panel-default">
                        <div class="panel-body">
                            <div class="form-group">
                                <form:form id="searchForm" modelAttribute="operationSchedule"
                                           onsubmit="return loadDivForm('contentDiv','searchForm','${ctx}/operation/operationScheduleAudit/auditList');"
                                           method="post" class="form-inline">
                                    <input name="pageNo" id="pageNo" type="hidden" value="${page.pageNo}"/>
                                    <input name="pageSize" id="pageSize" type="hidden" value="${page.pageSize}"/>
                                    <div id="search">
                                    <label>手术日期:&nbsp;&nbsp;</label>
                                    <fmt:formatDate value="${operationSchedule.scheduledDate}"
                                                    pattern="yyyy-MM-dd HH:mm:ss" var="date"/>
                                    <input name="scheduledDate" htmlEscape="false" class="form-control Wdate"
                                           data-parsley-required="true" readonly
                                           onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                           value="${date}" id="date"/>
                                        <label>开单科室:&nbsp;&nbsp;</label>
                                        <sys:treeselect selectedParent="true" id="orgDeptId" name="operationDeptId" value="${operationSchedule.operationDeptId}"  update="${not empty orgDept.id}" labelName="${operationSchedule.operationName}" labelValue="${operationSchedule.operationName}"
                                                        title="科室" url="/sys/orgDept/treeData" extId="${orgDept.id}" cssClass="form-control" isnull="true"/>
                                        <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></div>
                                </form:form>
                            </div>
                            <div class="table-responsive no-border" id="contentDiv">

                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </section>

        <%--右侧手术申请--%>
        <section class="main-content col-sm-8" style="display: none" id="operationRigthCenterDiv">
            <div class="content-wrap">
                <%--<jsp:include page="operationApplyForm.jsp"></jsp:include>--%>
            </div>
        </section>
    </section>

</div>
